<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        
    </div>
    <script type="x-template" id="template">
        <div>
            <h2>{{message}}</h2>
        </div>
    </script>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        // document.getElementById("template")
        Vue.createApp({
            template: '#template',
            data() {
                return {
                    message: '你好'
                }
            }
        }).mount("#app")
    </script>
</body>

</html>